#pragma once
#include "CLaserCodeElementSerialNumDlg.h"
#include "CLaserCodeElementDateDlg.h"
#include "CLaserCodeElementTimeDlg.h"
#include "CLaserCodeElementFileDlg.h"

// CLaserCodeElementDlg dialog

class CLaserCodeElementDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CLaserCodeElementDlg)
public:
	CLaserCodeElementDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CLaserCodeElementDlg();

// private:
	CAutoCode * m_pAutoCode;
// Dialog Data
	enum { IDD = IDD_LASER_CODE_ELEMENT_MAIN_DLG };
private:
	CLaserCodeElementSerialNumDlg m_SerialNumDlg;
	CLaserCodeElementDateDlg m_DateDlg;
	CLaserCodeElementTimeDlg m_TimeDlg;
	CLaserCodeElementFileDlg m_FileDlg;

	void ShowWindowCtrl(int nType);
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnClose();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedBtnOk();
	afx_msg void OnBnClickedBtnCancle();
	int m_nElementType;
	afx_msg void OnBnClickedRadioElement1();
	afx_msg void OnBnClickedRadioElement2();
	afx_msg void OnBnClickedRadioElement3();
	afx_msg void OnBnClickedRadioElement4();
	afx_msg void OnBnClickedRadioElement5();
	afx_msg void OnBnClickedRadioElement6();
	afx_msg void OnBnClickedRadioElement7();
};
